//
//  SettingsViewController.h
//  CalculatorApp
//
//  Created by Michael Geering on 29/03/2010.
//  Copyright 2010 SDC. All rights reserved.
//

#import <UIKit/UIKit.h>
#define plist_file @"settings.plist"
@protocol SettingsViewControllerDelegate;

@interface SettingsViewController : UIViewController  {
	
	id <SettingsViewControllerDelegate> delegate;

	UISwitch *messageButton;
	BOOL messageButtonState;
	UISlider *messageSlider;
	UILabel *messageLabel;
	
	UISwitch *randomButton;
	BOOL randomButtonState;
	UISlider *randomSlider;
	UILabel *randomLabel;
	
	UIButton *imageView;
	
	double kMessageValue;
	double kRandomValue;
	
		BOOL firstLaunch;
	
}



@property (nonatomic, retain) IBOutlet UISwitch *messageButton;
@property (nonatomic, retain) IBOutlet UISlider *messageSlider;
@property (nonatomic, retain) IBOutlet UILabel *messageLabel;

@property (nonatomic, retain) IBOutlet UISwitch *randomButton;
@property (nonatomic, retain) IBOutlet UISlider *randomSlider;
@property (nonatomic, retain) IBOutlet UILabel *randomLabel;

@property (nonatomic, retain) IBOutlet UIButton *imageView;

- (NSString *)dataFilePath;
- (void)getContentsOfPlist;
- (void)setContentsOfPlist;

- (IBAction)messageSliderValueChanged:(id)sender;
- (IBAction)randomSliderValueChanged:(id)sender;
- (IBAction)messageButtonStateChanged:(id)sender;
- (IBAction)randomButtonStateChanged:(id)sender;

- (IBAction)showCredits;
- (IBAction)releaseCredits;

@property (nonatomic, assign) id <SettingsViewControllerDelegate> delegate;
- (IBAction)showMainView;


@end

@protocol SettingsViewControllerDelegate
- (void)settingsViewControllerDidFinish:(SettingsViewController *)controller;

@end

